%% run_var1
% run VAR automatically
% 2020/1/23
clear all; close all; clc;
setup_workspace;
cd(ps.fpath.Main)

%% run var

jj_case=814;

for jj=jj_case
    
% clear variables for the loop
clearvars -except jj  jj_case        

    ps.file_name=['var_case' num2str(jj)]; % file name
    
    eval(ps.file_name); % run the file
    

end

% %% examine
% examine_irf;
% 
% examine_fevd;
% 
% examine_vardecomp;
% examine_vardecomp2;
